<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> 


<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - Chip Trac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<SCRIPT>

    function onCheck() {

        if(eval("document.customerForm['customer.locationRestriction']"+".checked"))
            document.customerForm['customer.selectedLocations'].disabled = false;
        else
            document.customerForm['customer.selectedLocations'].disabled = true;

        if(eval("document.customerForm['customer.dateCodeRestriction']"+".checked"))
            document.customerForm['customer.noOfDateCodeRestrictions'].disabled=false;
        else
            document.customerForm['customer.noOfDateCodeRestrictions'].disabled=true;

        if(eval("document.customerForm['customer.trayCodeRestriction']"+".checked"))
            document.customerForm['customer.noOfTrayCodeRestrictions'].disabled=false;
        else
            document.customerForm['customer.noOfTrayCodeRestrictions'].disabled=true ;
    }

    function submitpage(theForm)
    {
        theForm.action.value = "SaveCustomer";
        //theForm.submit();
    }

// SharatH on July 31, 2003
function showErrorReportPage()
{
    newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
    newWindow.focus();
}


</SCRIPT>

<!-- Top Header Start-->

<%@ include file="/jsp/includes/header.jsp" %>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@ include file="/jsp/sales/sales_menu.jsp" %>

</TD>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->

<html:form name="customerForm" method="post" action="/customers.do"  type="com.scalar.chiptrack.sales.forms.CustomerForm">
<nested:nest property="customer">

<center><span class="NArialW">Customer Profile Contd...</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>

<table border="0" width="90%" align=right>
  <tr>
    <td width="20%"><font class="NArialL" >Priority</font></td>
    <td width="20%"><font class="NArialL" >
        <nested:select size="1" property="priority" styleClass="txfield">
            <html:option value="High" />
            <html:option value="Low" />
        </nested:select></font>
    </td>
    <td width="8%">&nbsp;</td>
    <td width="24%"><font class="NArialL" >Cancellation Window</font></td>
    <td width="25%"><nested:text property="cancellationWindow" size="20" styleClass="txfield" /></td>
  </tr>
  <tr>
    <td width="20%" colspan=2><font class="NArialL" >
        <nested:checkbox property="locationRestriction" value="true" styleClass="txfield" onclick="onCheck()" />
        Location Restriction</font></td>
    <td width="8%">&nbsp;</td>
    <td width="20%"><font class="NArialL">Locations</font></td>
    <td width="32%"><nested:select multiple="true" size="4" disabled="true" property="selectedLocations">
        <html:options collection="locations" property="value" labelProperty="label"/>
        </nested:select>
    </td>
  </tr>
  <tr>
    <td width="20%" colspan=2><font class="NArialL" >
        <nested:checkbox property="dateCodeRestriction" value="true" styleClass="txfield" onclick="onCheck()" />
    Date Code Restriction</font></td>
    <td width="8%">&nbsp;</td>
    <td width="20%"><font class="NArialL">No Of Date Code Restrictions</font></td>
    <td width="32%"><nested:text property="noOfDateCodeRestrictions" size="20" styleClass="txfield" disabled="true" /></td>
  </tr>
   <tr>
      <td width="20%" colspan=2><font class="NArialL" >
            <nested:checkbox property="trayCodeRestriction" value="true" styleClass="txfield" onclick="onCheck()" />
      Tray Restriction</font></td>
      <td width="8%">&nbsp;</td>
      <td width="20%"><font class="NArialL">No Of Tray Restrictions</font></td>
      <td width="32%"><nested:text property="noOfTrayCodeRestrictions" size="20" styleClass="txfield" disabled="true" /></td>
  </tr>
  <tr>
    <td width="20%"><font class="NArialL" >Least Shippable Qty</font></td>
    <td width="20%"><nested:text property="leastShippableQty" size="20" styleClass="txfield" /></td>
    <td width="8%">&nbsp;</td>
    <td width="20%"><font class="NArialL">Credit Limit  </font></td>
    <td width="32%"><nested:text property="creditLimit" size="20" styleClass="txfield" /></td>
  </tr>
  <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
<!-- need to handle this late
  <tr>
    <td width="20%" colspan=2><font class="NArialL" ><input type="checkbox" name="locrestriction" value="ON" class="txfield" >
      Product Revision Restriction</font></td>
    <td width="8%">&nbsp;</td>
    <td width="20%" colspan=2></td>
  </tr>

  <tr>
      <td width="20%"><font class="NArialL" >Product : XYZ-A</font></td>
      <td width="20%"><input type="text" name="shipmethod3" size="20" class="txfield"></td>
      <td width="8%">&nbsp;</td>
      <td width="20%"><font class="NArialL">Product : XYZ-B  </font></td>
      <td width="32%"><input type="text" name="shipacct3" size="20" class="txfield"></td>
  </tr>
-->
  <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=30></td></tr>
  <tr><td colspan=5 align=center>
    <img border="0" src="<%=chipTracContext%>/jsp/includes/images/save.gif" onclick="javascript:submitpage(document.customerForm);" />
      	   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif">
      	   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="customer_setup.html"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/back.gif"></a>
      	   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <img border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif">
  </td></tr>
</table>

<input type="hidden" name="action" value="">
</nested:nest>
</html:form>


<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
